package com.jd.sys.mapper;

import com.jd.sys.domain.Permission;
import com.jd.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author É°Ç³
 * @since 2023-03-09
 */
public interface PermissionMapper extends BaseMapper<Permission> {
    Permission findBySn(String permissionSn);

    void deleteByRoleId(Long id);

    void addMid(@Param("roleId") Long id,@Param("permissions") List<Long> permissions);


    List<String> findByLogininfoId(Long logininfoId);

}
